package com.gzh.teaching.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author guanzh
 * @Date 2022/4/24 10:54
 * @Description
 */
@Component
@FeignClient(name = "system-service",url = "http://localhost:8888/system-service")
public interface ServiceClient {

    @PostMapping("/v1/api/sys/sendMailToCheck")
    void sendMailToCheck(@RequestParam("courseId") Integer courseId,@RequestParam("checkId") Integer checkId);
}
